def resolve_CQ_key_value(key_value:str):
    key_values = key_value.split(',')
    ans = dict()
    for v in key_values:
        u = v.split('=')
        ans[u[0]] = u[1]
    return ans
    
if __name__ == '__main__':
    cmd = 'file=1.silk,magic=true'
    ans = resolve_CQ_key_value(cmd)
    print(ans)

